package com.newcapec.shiro.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 组织机构实体
 * 建议：实现可序列化接口(数据放入缓存时可能需要)
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Organization implements Serializable {

    private Integer id;
    private String orgNo;
    private String orgCode;
    private String orgName;
    private String exeType;
    private String areaCode;
    private String linkAdd;
    private String zipcode;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date listingDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date standaloneDate;
    private String areaType;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date zbbdocDate;
    private String orgLevel;
    private String orgPro;
}
